#include "util.h"
#include "gdimix.h"
#include "photomix.h"

namespace PhotoMix
{
    static bool _bPassPlate = true;
    static bool _bPassVehicle = false;
    static bool _vVioPlate = false;
    static bool _bVioVehicle = true;

    bool Init() 
    {
        return CGDIMix::init();
    }

    void Clean()
    {
        CGDIMix::cleanup();
    }

    bool CarPassPhoto(SPassEvent *e)
    {
        return CGDIMix::crop(e, _bPassPlate&&!e->PlatePhoto.pData, _bPassVehicle&&!e->VehiclePhoto.pData);
    }

    bool CarVioPhoto(SPassEvent *e)
    {
        return CGDIMix::stitch(e, _vVioPlate&&!e->PlatePhoto.pData, _bVioVehicle&&!e->VehiclePhoto.pData);
    }
}